package com.hibernate.hrm.entity.dto.position;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class PositionEditDTO {
    @NotBlank(message = "职位名称不能为空")
    @Size(max = 50, message = "职位名称不能超过50个字符")
    private String positionName;

    @NotBlank(message = "职位代码不能为空")
    @Size(max = 20, message = "职位代码不能超过20个字符")
    private String positionCode;

    @NotNull(message = "所属部门不能为空")
    private Integer departmentID;

    @NotNull(message = "职位角色不能为空")
    private Integer positionRoleID;

    private Integer maxHeadCount;
    private BigDecimal baseSalary;
    private BigDecimal allowance;
    private BigDecimal annualLeaveDays;
    private Boolean status = true;
}
